<?php
/* @var $this IteracionController */
/* @var $model Iteracion */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'iteracion-form',
	'enableAjaxValidation'=>false,
        'htmlOptions' => array('enctype' => 'multipart/form-data'),
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>
        
        <?php if(Yii::app()->user->hasFlash('error')):?>
            <div class="errorMessage">
                <?php echo Yii::app()->user->getFlash('error'); ?>
            </div>
        <?php endif; ?>

	<!--<div class="row">
		<?php echo $form->labelEx($model,'idExperimento'); ?>
		<?php echo $form->textField($model,'idExperimento'); ?>
		<?php echo $form->error($model,'idExperimento'); ?>
	</div>-->

	

	<div class="row">
		<?php echo $form->labelEx($model,'Initial Date'); ?>
		<?php echo $form->dateField($model,'fechaIni'); ?>
		<?php echo $form->error($model,'fechaIni'); ?>
	</div>
        
        <div class="row">
		<?php echo $form->labelEx($model,'Change Value'); ?>
		<?php echo $form->textField($model,'unidadVPaso'); ?>
		<?php echo $form->error($model,'unidadVPaso'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'End Date'); ?>
		<?php echo $form->dateField($model,'fechaFin'); ?>
		<?php echo $form->error($model,'fechaFin'); ?>
	</div>

	
        
        <div class="row">
		<?php echo $form->labelEx($model,'Notes'); ?>
		<?php echo $form->textField($model,'bitacora',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'bitacora'); ?>
	</div>
        
        <div class="row">
		<?php echo $form->labelEx($model,'Data'); ?>
		<?php echo $form->fileField($model,'datos'); ?>
		<?php echo $form->error($model,'datos'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->